package order

import (
	"time"
)

type OrderXiaoqiangStruct struct {
	Id                   int       `gorm:"type:int(11) auto_increment; NOT NULL; primary_key"`
	Mobile               string    `gorm:"type:varchar(255); COMMENT:'手机号'"`
	OrderNo              string    `gorm:"type:varchar(255); COMMENT:'系统单号'"`
	XqOrderNo            int       `gorm:"type:int(11); COMMENT:'小强单号'"`
	ReservationStartTime time.Time `gorm:"type:datetime; COMMENT:'预约开始时间'"`
	ReservationEndTime   time.Time `gorm:"type:datetime; COMMENT:'预约结束时间'"`
	Status               int       `gorm:"type:tinyint(1); COMMENT:'订单状态 0 预约中, 1在场地内  2已结束'"`
	Abnormal             int       `gorm:"type:int(11); COMMENT:'异常订单'"`
	CreatedAt            time.Time `gorm:"type:datetime"`
	UpdatedAt            time.Time `gorm:"type:datetime"`
}

func (c *OrderXiaoqiangStruct) TableName() string {
	return "order_xiaoqiang"
}
